package com.aspose.cells;

class zbxc extends zcdb {
   zbxc(DataBar var1, boolean var2) {
      this.d = var2 ? 1051 : 467;
      this.c = new byte[var2 ? 11 : 3];
      int var3 = var2 ? 4 : 0;
      this.c[var3 + 0] = (byte)var1.getMinLength();
      this.c[var3 + 1] = (byte)var1.getMaxLength();
      if (var1.getShowValue()) {
         this.c[var3 + 2] = 1;
      }

      if (var2) {
         this.c[var3 + 3] = (byte)zcee.j(var1.getDirection());
         this.c[var3 + 4] = (byte)zcee.l(var1.getAxisPosition());
         if (var1.getBarBorder().getType() == 1) {
            this.c[var3 + 5] = (byte)(this.c[var3 + 5] | 1);
         }

         if (var1.getBarFillType() == 1) {
            this.c[var3 + 5] = (byte)(this.c[var3 + 5] | 2);
         }

         if (var1.getNegativeBarFormat().getColorType() == 0) {
            this.c[var3 + 5] = (byte)(this.c[var3 + 5] | 4);
         }

         if (var1.getNegativeBarFormat().getBorderColorType() == 0) {
            this.c[var3 + 5] = (byte)(this.c[var3 + 5] | 8);
         }
      }

   }
}
